<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page import="java.util.*" %>
<%@page import="java.text.SimpleDateFormat"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
		+ request.getServerName() + ":" + request.getServerPort()
		+ path + "/";
HttpSession   userSession   =   request.getSession(true);
if(userSession.getAttribute("admin")==null)  {
      response.sendRedirect(basePath+"admin/login.jsp");
	  return;
}
String date = new SimpleDateFormat("yyyy年MM月dd日  E").format(new Date());

%>

<%@ taglib prefix="s" uri="/struts-tags"  %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>

<%
response.setHeader("Pragma","No-Cache");
response.setHeader("Cache-Control","No-Cache");
response.setDateHeader("Expires", 0);
%>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta http-equiv="Cache-Control" content="no-store"/>
<meta http-equiv="Pragma" content="no-cache"/>
<meta http-equiv="Expires" content="0"/>
<link href="${ctx }/common/css/admin/admin.css" rel="stylesheet" type="text/css">
<link href="${ctx }/common/css/admin/theme.css" rel="stylesheet" type="text/css">
<link href="${ctx }/common/css/admin/tab.css" rel="stylesheet" type="text/css">
<link href="${ctx }/common/css/admin/default.css" rel="stylesheet" type="text/css">
<link href="${ctx }/common/css/News.css" rel="stylesheet" type="text/css">
<script src="${ctx }/common/js/tab.js" type="text/javascript" ></script>

<script src="${ctx }/plugins/dialogs/jquery.js" type="text/javascript" ></script>
<script src="${ctx }/plugins/dialogs/jquery.ui.draggable.js" type="text/javascript"></script>
<script src="${ctx }/plugins/dialogs/jquery.alerts.js" type="text/javascript"></script>
<link href="${ctx }/plugins/dialogs/jquery.alerts.css" rel="stylesheet" media="screen"  type="text/css"/>

<script type="text/javascript">
	var jQuery=$;
</script>

<script type="text/javascript">
jQuery(document).ready(function() {
	<c:if test="${not empty requestScope.actionMessages}">
	  var msg="${actionMessages[0]}";
	  //alert(msg);
	  if(window.myCallback){
		   jAlert(msg,"系统提示",myCallback);
	  } else{
		   jAlert(msg,"系统提示");
	  }
     
    </c:if>
    });
</script>

